package cn.bigfire.wedesk.util.portsanner;

import lombok.Data;

import java.util.concurrent.CopyOnWriteArrayList;

public class PortIps {
    private int port;
    private CopyOnWriteArrayList<String> ipList = new CopyOnWriteArrayList<>();

    public static PortIps of(int port) {
        PortIps portIps = new PortIps();
        portIps.setPort(port);
        return portIps;
    }


    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public CopyOnWriteArrayList<String> getIpList() {
        return ipList;
    }

    public void setIpList(CopyOnWriteArrayList<String> ipList) {
        this.ipList = ipList;
    }
}
